package cn.internship.modules.manage.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.internship.common.utils.PageUtils;
import cn.internship.common.utils.Query;

import cn.internship.modules.manage.dao.StuTeaRelationDao;
import cn.internship.modules.manage.entity.StuTeaRelationEntity;
import cn.internship.modules.manage.service.StuTeaRelationService;


@Service("stuTeaRelationService")
public class StuTeaRelationServiceImpl extends ServiceImpl<StuTeaRelationDao, StuTeaRelationEntity> implements StuTeaRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StuTeaRelationEntity> page = this.page(
                new Query<StuTeaRelationEntity>().getPage(params),
                new QueryWrapper<StuTeaRelationEntity>()
        );

        return new PageUtils(page);
    }

}